<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>


</head>
<!-- 

-->

<body>
    <div id="a">
        <a-c1>
        </a-c1>
    </div>
    <template id="b">
        <p>这是方式3</p>
    </template>
    <script>
        var a = Vue.extend({
            template: '<p>用vue.extend创建的组件 </p>'

        })
        Vue.component('aC1', a);
        new Vue({
            el: '#a',
            data: {

            },
            complates: {
                login: { //这里有login
                    aC1: '#b'
                }

            }
        })
    </script>
</body>

</html>